using System;

namespace AdvancedInspector
{
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
	public class EnumAttribute : Attribute, IListAttribute
	{
		private bool masked;

		private EnumDisplay display;

		private int maxItemsPerRow = 6;

		public bool Masked
		{
			get
			{
				return masked;
			}
			set
			{
				masked = value;
			}
		}

		public EnumDisplay Display
		{
			get
			{
				return display;
			}
			set
			{
				display = value;
			}
		}

		public int MaxItemsPerRow
		{
			get
			{
				return maxItemsPerRow;
			}
			set
			{
				maxItemsPerRow = value;
			}
		}

		public EnumAttribute(bool masked)
		{
			this.masked = masked;
		}

		public EnumAttribute(EnumDisplay display)
		{
			this.display = display;
		}

		public EnumAttribute(bool masked, EnumDisplay display)
		{
			this.masked = masked;
			this.display = display;
		}
	}
}
